body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 顶部导航栏样式 */
.top-navbar {
    background-color: #333;
    color: white;
    display: flex;
    align-items: center;
    padding: 10px 20px;
}

.top-navbar a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    transition: background-color 0.3s;
}

.top-navbar a:hover {
    background-color: #555;
}

.top-navbar a.active {
    background-color: #007BFF;
}

/* 侧边栏样式 */
.side-navbar {
    background-color: #f4f4f4;
    width: 200px;
    height: calc(100vh - 50px);
    overflow-y: auto;
    border-right: 1px solid #ddd;
}

.side-navbar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.side-navbar li {
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.side-navbar li:hover {
    background-color: #e0e0e0;
}

.side-navbar li.active {
    background-color: #007BFF;
    color: white;
}

/* 内容区域样式 */
.main-content {
    flex: 1;
    display: flex;
}

.content-container {
    flex: 1;
    padding: 20px;
}

.content {
    display: none;
}

.content.active {
    display: block;
}

/* 小屏幕样式 */
@media (max-width: 768px) {
    .side-navbar {
        display: none;
    }

    .content-container {
        margin-left: 0;
    }
}